﻿
using System;
using MySqlSugar;

namespace DistpmbyNetCore.DBContext
{
    public static class SqlSugarDbContext
    {
        
        public static SqlSugarClient GetConnection()
        {
            SqlSugarClient db = new SqlSugarClient(DbConfigure.ConnStr);
            db.IsEnableLogEvent = true;
            db.LogEventStarting = (sql, par) => { Console.WriteLine(sql + " " + par + "\r\n"); };
            return db;
        }
    }
}